package com.health.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.health.pojo.Member;
import com.health.service.MemberService;
import com.health.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * t_member表
 */
@RestController
@RequestMapping("/member")
public class MemberController {

    @Reference
    private MemberService memberService;

    /**
     * 获取会员id
     */
    @GetMapping("/findMemberId")
    public Result findMemberId(@RequestBody Member member){
        int memberId=memberService.findMemberId(member);

        return new Result(true,"获取会员id成功",memberId);
    }


}
